import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('album', { schema: 'aurora' })
export class album {
  @PrimaryGeneratedColumn({ type: 'int', name: 'ind' })
  ind: number;
  @Column('varchar', {
    name: 'id',
    comment: '相册id',
  })
  id: string;
  @Column('varchar', {
    name: 'title',
    comment: '相册标题',
  })
  title: string;
  @Column('longtext', {
    name: 'content',
    comment: '相册文字内容',
  })
  content: string;
  @Column('varchar', {
    name: 'images',
    comment: '图片列表',
  })
  images: string;
  @Column('bigint', {
    name: 'creationTime',
    comment: '创建时间',
  })
  creationTime: number;
  @Column('bigint', {
    name: 'albumTime',
    comment: '拍摄时间',
  })
  albumTime: number;
  @Column('bigint', {
    name: 'updateTime',
    comment: '修改时间',
  })
  updateTime: number;
  @Column('int', {
    name: 'show',
    comment: '是否显示',
  })
  show: number;
  @Column('varchar', {
    name: 'dimension',
    comment: '相册标注',
  })
  dimension: string;
  @Column('varchar', {
    name: 'address',
    comment: '地址',
  })
  address: string;
  @Column('varchar', {
    name: 'poiDesc',
    comment: '介绍',
  })
  poiDesc: string;
  @Column('double', {
    name: 'lat',
    comment: 'lat',
  })
  lat: number;
  @Column('double', {
    name: 'lng',
    comment: 'lng',
  })
  lng: number;
  @Column('varchar', {
    name: 'city',
    comment: '市',
  })
  city: string;
  @Column('varchar', {
    name: 'district',
    comment: '区',
  })
  district: string;
}
